package PTA_JAVA.BaseTest.Demo05;

import java.math.BigInteger;
import java.util.Scanner;
class Main{
    public static void main(String [] args){
        Scanner sc=new Scanner(System.in);
        BigInteger sum=new BigInteger("0");
        String a = sc.nextLine();
        while(!a.equals("E") && !a.equals("e")){
            BigInteger asum=new BigInteger(a);
            sum=sum.add(asum);
            a=sc.nextLine();
        }
        System.out.println(sum);
    }
}
